package com.qining618.cms.ucenter.enums;

import com.baomidou.mybatisplus.core.enums.IEnum;

/**
 * 菜单类型
 * @author flt
 * @date 2019-09-17
 */
public enum MenuTypeEnum implements IEnum<Integer> {
    MENU(1, "菜单"),
    BUTTON(2, "按钮"),
    ;

    private final int code;
    private final String label;

    MenuTypeEnum(int code, String label) {
        this.code = code;
        this.label = label;
    }

    @Override
    public Integer getValue() {
        return this.code;
    }

    public int getCode() {
        return code;
    }

    public String getLabel() {
        return label;
    }
}
